package com.example.zyh.service.Impl;


import com.example.zyh.mapper.ShopMapper;
import com.example.zyh.pojo.Shop;
import com.example.zyh.service.ShopService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class ShopServiceImpl implements ShopService {
    @Resource
    private ShopMapper shopMapper;

    @Override
    public List<Shop> select() {
        return shopMapper.select() ;
    }

    @Override
    public void addShop(Shop shop) {
          shopMapper.addShop(shop);
    }

    @Override
    public void deleteShop(int id) {
       shopMapper.deleteShop(id);
    }

    @Override
    public void updateShop(Shop shop) {
        shopMapper.updateShop(shop);
    }

    @Override
    public List<Shop> selectlike(Shop shop) {
        return shopMapper.selectlike(shop);
    }
}
